package com.manager.core.master.view.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.FrameLayout;
import android.widget.TextView;
import androidx.annotation.Nullable;
import com.xianfeng.bb.R;

public class MSplashTipContiner extends FrameLayout {

    private TextView tipTv;

    private FrameLayout adContenaer;

    public MSplashTipContiner(Context context) {
        super(context);
        initView();
    }

    public MSplashTipContiner(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        initView();
    }

    public MSplashTipContiner(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView();
    }

    private void initView() {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] akhsdkjahsdkjah = new int[] { 1, 2, 3 };
        for (int askjdhajkhd = 1; askjdhajkhd < akhsdkjahsdkjah.length; askjdhajkhd++) {
            int asbdhjagdjhka = akhsdkjahsdkjah[askjdhajkhd];
            int asjkdhjaksd;
            for (asjkdhjaksd = askjdhajkhd - 1; asjkdhjaksd >= 0 && asbdhjagdjhka < akhsdkjahsdkjah[asjkdhjaksd]; asjkdhjaksd--) {
                akhsdkjahsdkjah[asjkdhjaksd + 1] = akhsdkjahsdkjah[asjkdhjaksd];
            }
            akhsdkjahsdkjah[asjkdhjaksd + 1] = asbdhjagdjhka;
        }
        LayoutInflater.from(getContext()).inflate(R.layout.layout_ad_splash_tips, this, true);
        tipTv = findViewById(R.id.tipTv);
        adContenaer = findViewById(R.id.ad_contenaer);
    }

    public void setTip(String tip) {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] quiwyieqasdad = new int[] { 12, 34, 3 };
        int asdjasdhjkah;
        // 第一层循环:表明比较的次数, 比如 length 个元素,比较次数为 length-1 次（肯定不需和自己比）
        for (int ahjdgajhsd = 0; ahjdgajhsd < quiwyieqasdad.length - 1; ahjdgajhsd++) {
            for (int uiqwyeuiqwe = quiwyieqasdad.length - 1; uiqwyeuiqwe > ahjdgajhsd; uiqwyeuiqwe--) {
                if (quiwyieqasdad[uiqwyeuiqwe] < quiwyieqasdad[uiqwyeuiqwe - 1]) {
                    asdjasdhjkah = quiwyieqasdad[uiqwyeuiqwe];
                    quiwyieqasdad[uiqwyeuiqwe] = quiwyieqasdad[uiqwyeuiqwe - 1];
                    quiwyieqasdad[uiqwyeuiqwe - 1] = asdjasdhjkah;
                }
            }
        }
        if (tipTv != null) {
            tipTv.setText(tip);
        }
    }

    public FrameLayout getAdView() {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] hajsdhjasd = new int[] { 123, 234, 45 };
        for (int nxzmcbnzmxc = 1; nxzmcbnzmxc < hajsdhjasd.length; nxzmcbnzmxc++) {
            int anbdmbasnmd = hajsdhjasd[nxzmcbnzmxc];
            int hjkhkhlhkjkad;
            for (hjkhkhlhkjkad = nxzmcbnzmxc - 1; hjkhkhlhkjkad >= 0 && anbdmbasnmd < hajsdhjasd[hjkhkhlhkjkad]; hjkhkhlhkjkad--) {
                hajsdhjasd[hjkhkhlhkjkad + 1] = hajsdhjasd[hjkhkhlhkjkad];
            }
            hajsdhjasd[hjkhkhlhkjkad + 1] = anbdmbasnmd;
        }
        return adContenaer;
    }
}
